// 环形饼图
export default {
  initOptions: {
    grid: {
      top: '10',
      bottom: '10'
    },
    tooltip: {
      trigger: 'item',
      formatter: '{a} <br/>{b}: {c} ({d}%)'
    },
    series: [
      {
        name: '',
        type: 'pie',
        radius: ['50%', '70%'],
        avoidLabelOverlap: false,
        bottom: '40',
        label: {
          show: false,
          position: 'center'
        },
        emphasis: {
          label: {
            show: true,
            fontSize: '30',
            fontWeight: 'bold'
          }
        },
        labelLine: {
          show: false
        },
        data: []
      }
    ]
  },
  setEchart (echartObject) {
    echartObject.setOption(this.initOptions)
    setTimeout(() => {
      echartObject.resize()
    })
  }
}
